In computer programming, a utility class is a class that defines a set of methods that perform common, often re-used functions. Most utility classes define these common methods under static (see Static variable) scope. Examples of utility classes include java.util.Collections () which provides several utility methods (such as sorting) on objects that implement a Collection (java.util.Collection () ). == Example ==